package com.tabjin.rfidsocket.pojo.bo;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author tabjin
 * create at 2020/12/8 10:43
 * @program rfid_socket
 * @description 部门参数
 */
@Getter
@Setter
@ToString
public class SysDeptBO {
    private Integer id;

    @NotBlank(message = "部门名称不可以为空")
    @Length(max = 15, min = 2, message = "部门名称需要2-15字之间")
    private String name;

    private Integer parentId = 0;

    private String parentDeptName;

    @NotNull(message = "展示顺序不能为空")
    private Integer seq;

    @NotNull(message = "部门主管不能为空")
    private List<Integer> administrator;

    @Length(max = 150, message = "备注的长度不能超过150个字")
    private String remark;
}
